#include <memchart.hpp>

#include "node.hpp"

using memchart::update;

Node *bar (Node *head, Node *p)
{
	static int i = 0;

	p->b = new Node;
	p->a = i++ < 6 ? bar(head, new Node) : head;

	return p;
}

int main ()
{
	Node *head = new Node;

	bar(head, head);

	update();
}
